package com.person.controller;

import com.person.model.entity.Result;
import com.person.service.ExportService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ExportController {

    @Resource
    private ExportService exportService;

    @PostMapping("/export")
    public Result export(@RequestParam Integer complaintInfoId) {
        exportService.export(complaintInfoId);
        return Result.success();
    }
}
